package com.example.springboot.mybatisplus.service.impl;

import com.example.springboot.mybatisplus.dal.entity.Emp;
import com.example.springboot.mybatisplus.dal.mapper.EmpMapper;
import com.example.springboot.mybatisplus.service.IEmpService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lei Yu
 * @since 2024-05-17
 */
@Service
@RequiredArgsConstructor
public class EmpServiceImpl extends ServiceImpl<EmpMapper, Emp> implements IEmpService {

    private final EmpMapper empMapper;
    @Override
    public List<Emp> getEmpListByName(String ename) {
        return empMapper.getEmpListByName(ename);
    }
}
